import Vue from 'vue'
import VueRouter from 'vue-router'
import Content from "../components/Content";
import Main from "../components/Main";
import Edgar from "../components/Edgar";
import kuangdianvue from "../components/kuangdianvue";
//安装路由
Vue.use(VueRouter)

//配置导出路由
export default new VueRouter (
  {
    routes:[
      {
        //路由路径 requestMapping
        path:'/content',
        name:'content',
        //跳转的组件
        component:Content
      },
      {
        //路由路径
        path:'/main',
        name:'main',
        //跳转的组件
        component:Main
      }
      ,
      {
        // 路由路径
        path: '/edgar',
        // 路由名称
        name: 'edgar',
        // 跳转的组件
        component: Edgar
      },
      {
        // 路由路径
        path: '/kuangdianvue',
        // 路由名称
        name: 'kuangdianvue',
        // 跳转的组件
        component: kuangdianvue
      }
    ]
  }
);
